#include "motionthread.h"

#include "../mccontrollerinterpreter.h"

MotionThread::MotionThread(McControllerInterpreter *mcInterpreterIn, QObject *parent) :
    QThread(parent)
{
    mcInterpreter=mcInterpreterIn;
    callCount=0;
}

void MotionThread::run()
{
    while(1)
    {
        sleep(0.001);

            mcInterpreter->algorithmFunctioncall();
            callCount+=1;

    }

}

int MotionThread::getCallCount()
{
    return callCount;
}

